//按顺序打印一个数字的每一位(例如 1234 打印出 1 2 3 4)
public class Test {
    public static void print(int n) {
        if(n < 10) {
            System.out.print(n+" ");
        }else {
            print(n/10);
            System.out.print(n%10+" ");
        }

    }
    public static void main(String[] args) {
        print(1234);
    }

}
